package mblog.core.persist.service;

import mblog.core.data.PMaterial;
import mblog.core.persist.entity.PMaterialPO;
import mtons.modules.pojos.Paging;

import java.util.List;

/**
 * @author zhangyue
 */
public interface MaterialService {

    void save(PMaterial material);

    void delete(long id);

    PMaterial findById(long id);

    List<PMaterial> findAll();

    void paging(Paging page, String key);

    List<PMaterial> getByNameAndModel(String name, String model);

}
